#ifndef LIB_M_AUX
#define LIB_M_AUX

#define lenMin 1
#define lenMax 7

/*
  char *str_up

  Converts each letter of the string "str" to a capital letter
  Simple as that.

  Returns a pointer to the char-arr "str".
*/
char *str_up(char *str);

/*
  int readLine

  Reads a line of maximum "len" from file.
  Similar to fgets, but it doesn't read the '\n' character (0A in hex).
  Also it skips carriage returns '\r' (0D in hex).

  Returns the length of the char-arr line.
*/
int readLine(FILE *f, char *line, int len);


/*
  int len_valid

  Verifies if the length interval given by console argument to mangos-bf
  is a valid interval.
*/
int len_valid(int l_min, int l_max);

/*
  char *makeCharSet

  Based on the parameters provided from the console and forwarded to "opt",
  this function returns the address of the character set created.

  If "opt" has a wrong format, the function returns NULL pointer.
*/
char *makeCharSet(char *opt, int *charSetLen);

#endif
